package org.jeecg.modules.lockGps.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.lockGps.entity.LockGps;

/**
 * @Description: 电子锁GPS信息
 * @Author: jeecg-boot
 * @Date:   2024-09-07
 * @Version: V1.0
 */
public interface LockGpsMapper extends BaseMapper<LockGps> {

    @Select("SELECT MAX(gps_time) FROM lock_gps WHERE device_code =#{deviceCode}")
    Long getMaxGpsTime(@Param("deviceCode") String deviceCode);
}
